package cn.edu.ujn.finallab.dao;

public class Customer {
    private Integer id;

    private String name;

    private String password;

    private String phone;

    private String idcard;
    
    public Customer(Integer id, String name, String password, String phone, String idcard) {
    	this.id = id;
    	this.name = name;
    	this.password = password;
    	this.phone = phone;
    	this.idcard = idcard;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

	@Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", password=" + password + ", phone=" + phone + ", idcard="
				+ idcard + "]";
	}
    
}